<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Payeer® Merchant</title>
<link href="//payeer.com/css/merchant.css?<?php echo time()?>" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="//payeer.com/api/merchant/jquery.js"></script>
<!--[if lte IE 7]>
<script type="text/javascript" src="//payeer.com/api/exchange/json2.js"></script>
<![endif]-->
<script type="text/javascript" src="//payeer.com/api/merchant/jquery.xdomainrequest.js"></script>
<script type="text/javascript" src="//payeer.com/api/merchant/tooltip.js"></script>
<script type="text/javascript" src="//payeer.com/api/merchant/m.js?<?php echo time()?>"></script>
</head>
<body>
<?php
echo '<pre>';
print_r($_REQUEST);
echo '</pre>';

?>
<script type="text/javascript">
var myMerchant=new jsMyMerchant(2541486, ".api_merchant","","<? echo $_REQUEST['lang']?>");
$(document).ready(function()
{
<?php if (isset($_REQUEST["m_historyid"]) && isset($_REQUEST["m_historytm"])): ?>
<?php
$m_historyid = intval($_REQUEST["m_historyid"]);
$m_historytm = intval($_REQUEST["m_historytm"]);
$m_curorderid = intval($_REQUEST["m_curorderid"]);
?>
myMerchant.processOrder('<?php echo $m_historyid?>', '<?php echo $m_historytm ?>', '<?php echo $m_curorderid?>');
<?php else: ?>
<?
$m_shop = intval($_REQUEST["m_shop"]);
$m_orderid = trim($_REQUEST["m_orderid"]);
$m_amount = number_format(floatval($_REQUEST["m_amount"]), 2, ".", "");
$m_curr = substr($_REQUEST['m_curr'], 0, 3);
$m_desc = stripslashes(htmlspecialchars(strip_tags($_REQUEST["m_desc"])));
$m_sign = stripslashes(htmlspecialchars(strip_tags($_REQUEST["m_sign"])));
?>
myMerchant.list('<?php echo $m_shop?>', '<?php echo $m_orderid?>', '<?php echo $m_amount?>', '<?php echo $m_curr?>', '<?php echo $m_desc?>', '<?php echo $m_sign?>');
<?php endif;  ?>
});
</script>
<div class="api_merchant"></div>

</body>
</html>